Repository navigation
fix: stage the entrypoint manifest on the builtin Dang runtime - #88
Merged
Merged
Conversation
Rendering a static entrypoint loads the module source of a staged manifest. With no runtime of its own, staging added the builtin Python runtime, and the engine loads that SDK eagerly: it runs codegen generate-module and builds the Go module, for a source the build reads only the paths of. The engine refuses a manifest with neither entrypoint nor runtime, so stage it on the builtin Dang runtime, which loads with no build. The saving, 9 to 14 s on a cold engine (-8.9 s local, -14.4 s cloud), comes from trace analysis of the unmodified build. The patched build ran on a warm engine and was only checked for the absence of the python runtime spans and of the python-sdk generate-module exec. entrypoint-manifest-check passes, and so do static-scope-init-check, static-types-load-check, linked-entrypoint-config-check and generate-scope-init-check. entrypoint-client-call-check fails, and fails identically on upstream/main on engine v1.0.0-beta.25. Signed-off-by: Yves Brissaud <yves@dagger.io>
eunomie
force-pushed
the
item-a-python-ffda5c50
branch
from
November 10, 2026 14:12
cfe432f to
76310b0
Compare
eunomie
marked this pull request as ready for review
November 10, 2026 14:26
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Staging a static entrypoint manifest added the builtin Python runtime, which the engine loads eagerly (codegen generate-module plus a Go build) for a source whose paths are only read. Stage it on the builtin Dang runtime instead, which loads with no build. The engine refuses a manifest with neither entrypoint nor runtime, so a runtime is still needed.
Expected saving: 9-14 s on a cold engine (-8.9 s local, -14.4 s cloud), from trace analysis of
python-sdk/generate/staleon typesafe-ai/daggerverse@44d53ca7. Not measured end to end: the patched run was warm, and only confirmed that thelegacy runtime interface: pythonspans and thegenerate-module --module-name python-sdkexec are gone, with the stale check passing (41.1 s patched vs 45.7 s upstream, both warm).Checks on engine v1.0.0-beta.25:
entrypoint-manifest-check,static-scope-init-check,static-types-load-check,linked-entrypoint-config-check,generate-scope-init-checkpass.entrypoint-client-call-checkfails, identically on upstream/main.